<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<style type="text/css">
<!-- 
.table_white th {
	font-weight: normal;
}
 -->
</style>
<tpl>include file ='../head.config.html'</tpl>
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/calendar/Calendar.js"></script>
<link id="calCss" type="text/css" href="../js/calendar/blue/blue.css" rel="Stylesheet" />
<script type="text/javascript" language="javascript"> 
//普通日历
$(function(){
	 //datepicker
	$("#txtBirthday").datepicker();
})
// JavaScript Document
$(function(){
	$("#form_modi").validate({
		event: "keyup",
		errorClass: "error",
		rules: {
			rdoGender: {required:true},
			area_id: {required:true},
			txtAddress: {required:true},
			txtZip: {number: true,min:100000,max:999999},
			txtMobilephone: {number: true,min:10000000000,max:19999999999},
			txtPhone: {number: true},
			txtOtherphone: {number: true},
			txtQQ: {number: true}
		},
		messages: {
			rdoGender: {required: "<tpl> $errMSelectSex </tpl>"},
			area_id: {required:"<tpl> $errMAreaIsEmpty </tpl>"},
			txtAddress: {required: "<tpl> $errMAddressNotNull </tpl>"},
			txtZip: {number: "<tpl> $errMPostIsNum </tpl>",min:"<tpl> $errMPostFormat </tpl>",max:"<tpl> $errMPostFormat </tpl>"},
			txtMobilephone: {number: "<tpl> $errMMobileTelephoneIsNum </tpl>",min:"<tpl> $errMMobileTelephoneFormat </tpl>",max:"<tpl> $errMMobileTelephoneFormat </tpl>"},
			txtPhone: {number: "<tpl> $errMPhoneIsNum </tpl>"},
			txtOtherphone: {number: "<tpl> $errMPhoneIsNum </tpl>"},
			txtQQ: {number: "<tpl> $errMQQIsNum </tpl>"}
		}
	});

})
</script>
</head><body><tpl>include file ='../header.html'</tpl>
<div id="container761"> 
<div class="own_member_main">

 <tpl>include file ='own_menu.html'</tpl>
  <div class="member_right">
      <div class="new_main_left">
		<div class="new_main_left1">
	<h1 class="new_text"><tpl> $langMInfoPassword </tpl></h1>
		 <i></i>
	</div>
		  <b></b>
	</div>
  <div id="own_main_rightop"></div>
	<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
  
  <tpl>include file ='../InfoSelectorTarget.html'</tpl>

    <form action="own_member.php?action=modifysave" method="post" name="form_modi" id="form_modi">
		<input type="hidden" name="area_id" id="area_id" value="<tpl> $member_array.area_id </tpl>" />
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#DEEBEF" bgcolor="#FFFFFF" class="table_white"  >
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><tpl> $langMloginname </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE"><strong>　
          <tpl> $member_array.login_name </tpl></strong></td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><tpl> $langMtruename </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
            <tpl> if $member_array.true_name != ""</tpl>
			<tpl> $member_array.true_name </tpl>
			<input type="hidden" name="txtTruename" id="txtTruename" value="<tpl> $member_array.true_name </tpl>" />
			<tpl> else </tpl>
			<input name="txtTruename" type="text" id="txtTruename" class="new_input" value="<tpl> $member_array.true_name </tpl>" />
			<tpl> /if </tpl>
            <label style="display:none" for="txtTruename" class="error" metaDone="true" generated="true"></label>
          <span style="margin-left:5px; color:#FF6600"><tpl> $langMNameNotAmend </tpl></span></td>
        </tr>
       
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><tpl> $langMbirthday </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
            <!-- 日历 -->
		<input type="text" name="txtBirthday" class="new_input" id="txtBirthday" size="15"  readonly="readonly" value="<tpl> $member_array.birthday </tpl>"/> 
          <label style="display:none;" for="f_date" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th height="35" align="right" bgcolor="#F5F9FA"><span class="fontred">*</span>
          <tpl> $langMgender </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
            <tpl> $gender </tpl>
          <label style="display:none" for="rdoGender" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><tpl> $langMemail </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
          <tpl> $member_array.email </tpl></td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><tpl> $langMzip </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
            <input name="txtZip" type="text" id="txtZip" class="new_input" size="10" value="<tpl> $member_array.zip </tpl>" />
          <label style="display:none" for="txtZip" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><tpl> $langMmobilephone </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
            <input name="txtMobilephone" type="text" class="new_input" id="txtMobilephone" value="<tpl> $member_array.mobilephone </tpl>" />
          <label style="display:none" for="txtMobilephone" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><tpl> $langMphone </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
            <input name="txtPhone" type="text" id="txtPhone"class="new_input"  value="<tpl> $member_array.phone </tpl>" />
          <label style="display:none" for="txtPhone" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><tpl> $langMotherphone </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
            <input name="txtOtherphone" type="text" id="txtOtherphone"class="new_input"  value="<tpl> $member_array.otherphone </tpl>" />
          <label style="display:none" for="txtOtherphone" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><span class="fontred">*</span>
          <tpl> $langMaddress </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
		  	<select id="c1" class="searchformselect" name="c1" style="width: 120px">
				<option valus="" selected></option>
				<tpl> foreach item = parent from = $area_array </tpl>
				<option <tpl> if $sel_area[0].area_id eq $parent.area_id </tpl>selected="selected"<tpl> /if  </tpl> value="<tpl>$parent.area_id</tpl>||<tpl>$parent.is_parent</tpl>"><tpl> $parent.area_name </tpl></option>
				<tpl> /foreach </tpl>
			</select>
			<select class="searchformselect" id="c2" style="width: 120px" name="c2">
				<option valus="<tpl> $sel_area[1].area_id </tpl>" selected><tpl> $sel_area[1].area_name </tpl></option>
			</select>
			<select class="searchformselect" id="c3" style="width: 120px" name="c3">
				<option valus="<tpl> $sel_area[2].area_id </tpl>" selected><tpl> $sel_area[2].area_name </tpl></option>
			</select>
			<select class="searchformselect" id="c4" style="width: 120px" name="c4">
				<option valus="<tpl> $sel_area[3].area_id </tpl>" selected><tpl> $sel_area[3].area_name </tpl></option>
			</select>
          	<label style="display:none" for="area_id" class="error" metaDone="true" generated="true"></label>
          </td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA"><span class="fontred">*</span>
            <tpl> $langParticularMaddress </tpl>:　</th>
          <td width="75%" height="35" align="left" bgcolor="#FCFEFE">　
            <input name="txtAddress" type="text" id="txtAddress"class="new_input"  value="<tpl> $member_array.address </tpl>" />
          <label style="display:none" for="txtAddress" class="error" metaDone="true" generated="true"></label><span style="margin-left:5px; color:#FF6600"><tpl> $errMAvailabilityInfo </tpl></span></td>
        </tr>
        <tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA">QQ:　</th>
          <td width="75%" height="35" align="left"  bgcolor="#FCFEFE">　
            <input name="txtQQ" type="text" id="txtQQ"class="new_input" value="<tpl> $member_array.QQ </tpl>" />
          <label style="display:none" for="txtQQ" class="error" metaDone="true" generated="true"></label></td>
        </tr>
		<tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA">MSN:　</th>
          <td width="75%" height="35" align="left"  bgcolor="#FCFEFE">　
            <input name="txtMSN" type="text" id="txtMSN"class="new_input" value="<tpl> $member_array.MSN </tpl>" />
          <label style="display:none" for="txtMSN" class="error" metaDone="true" generated="true"></label></td>
        </tr>
		<tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA">SKYPE:　</th>
          <td width="75%" height="35" align="left"  bgcolor="#FCFEFE">　
            <input name="txtSKYPE" type="text" id="txtSKYPE"class="new_input" value="<tpl> $member_array.SKYPE </tpl>" />
          <label style="display:none" for="txtSKYPE" class="error" metaDone="true" generated="true"></label></td>
        </tr>
		<tr>
          <th width="25%" height="35" align="right" bgcolor="#F5F9FA">TAOBAO:　</th>
          <td width="75%" height="35" align="left"  bgcolor="#FCFEFE">　
            <input name="txtTAOBAO" type="text" id="txtTAOBAO"class="new_input" value="<tpl> $member_array.TAOBAO </tpl>" />
          <label style="display:none" for="txtTAOBAO" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th height="35" colspan="2" align="center" valign="middle" bgcolor="#FFFFFF"><input type="submit" name="Submit"  class="new_anniu"  value="<tpl> $langCsave </tpl>" /></th>
        </tr>
      </table>
    </form>
<script>
function tonext(whos) {
	$(whos).change(
		function(){
			var valarray=$(this).val().split('||');	
			$('#area_id').val(valarray[0]);
			if (valarray[1]=='1') {
				$(this).next().attr('disabled','true').html('<option value="" selected="selected"><tpl> $langCDataToLoading </tpl></option>');
				$.get(
					'../home/tohtml.php',
					{action:'get_area',id:valarray[0],random_number:Math.random()},
					function(data){
						DataArray = data.split("|||");
						var a='';
						for (var i = 0; i<DataArray.length-1; i++) {
							att=DataArray[i].split("||");
							id=att[0];
							cla=att[2];
							a+='<option value="'+id+'||'+cla+'">'+att[1]+((cla=='1')?' ->':'')+'</option>';
						}
						
					$(whos).next().removeAttr('disabled').html('<option value="" selected="selected"></option>'+a).nextAll().html('');
					tonext($(whos).next());
					}
				)
			} else {
				$(whos).nextAll().html('').attr('disabled','true');
			};
		}
	)
};
$().ready(function() {
	tonext('#c1');
});
</script>
  </div>
  </div>
  <tpl> include file ='../../../html/footer.html' </tpl> </div>
</body>
</html>
